public class project1{
	//This function takes the three triangle sides as inputs and prints information about the triangle
	public static void triangle(double sideA, double sideB, double sideC){
		
		boolean equilateral = false;
		boolean isosceles = false;
		boolean scalene = false;
		boolean right = false;

		//Check that triangle passes the inequality theorem
		if (((sideA+sideB)<=sideC) || ((sideB+sideC)<sideA) || ((sideA+sideC)<sideB)){
			System.out.println("The provided side measurements do not form a triangle \n");
			return;
		}	
		System.out.println("For a triangle with side lengths " +sideA +", " +sideB +", and " +sideC);
		//Check if equalateral
		if (sideA == sideB && sideB == sideC) {
			equilateral = true;
		}
		//Check if isosceles
		else if (sideA == sideB || sideB == sideC || sideA == sideC){
			isosceles = true;
		}
		//Check if scalene
		else {
			scalene = true;
		}
		//Check if right triangle
		if ((sideA*sideA) == (sideB*sideB + sideC*sideC) || (sideB*sideB) == (sideA*sideA + sideC*sideC) || (sideC*sideC) == (sideB*sideB + sideA*sideA)){
			right = true;
		}		
		//Output results
		if (equilateral){
			System.out.println("The triangle is equilateral.");
		}
		if (isosceles){
			System.out.println("The triangle is isosceles.");
		}
		if (scalene){
			System.out.println("The triangle is scalene.");
		}
		if (right){
			System.out.println("The triangle is a right triangle.");
		}
		System.out.println();
	}
}